/**
 * 详情页面中获取值
 */
function main() {
    let self = this;
    const DETAILPAGE = "page_detail_c5mwmp";
    const cardInfo = getDetailValue(self, DETAILPAGE);
    console.log(cardInfo);
    let punishStatusCode = cardInfo.page_detail_c5mwmp.value;
}

/**
 * 获取表单的值
 * @param self
 * @param formId
 * @param tableId
 * @returns {*}
 */
function getFormValue(self, formId, tableId) {
    const formPartEle = this.findElement(formId);
    const renderElement = formPartEle.$$getRenderElement();
    const data = renderElement.$$getFormValue().tableId;
    let list_name = data.text_input_fluicd;
    return data;
}



/**
 * 获取详情页的值
 */
function getDetailValue(self, detailId) {
    const pageDetail = self.$$(detailId);
    const data = pageDetail.$$getRenderElement().state.record;
    return data;
}
